<?php
    /*$url = $this->url(array(), $params['module'] . "_" . strtolower($params['controller']) . "_" . str_replace("-","_",$params['action']));*/
    $url = $this->url;
    $lang = $this->lang;
	$url = trim($url,'/');
	$url_vi = $url;
	$url_en = $url;
	if(strpos($url,$lang) === false){
		$url_vi .= '/vi_VN';
		$url_en .= '/en_US';
	}else{
		$url_vi = str_replace($lang,'vi_VN',$url);
		$url_en = str_replace($lang,'en_US',$url);		
	}
?>
<?php if($lang == 'en_US') : ?>
    <li class="lang"><a href="<?php echo $url_vi; ?>"><span>xem trang bằng TIẾNG VIỆT</span></a></li>
<?php else: ?>
    <li class="lang"><a href="<?php echo $url_en; ?>"><span>view website in ENGLISH</span></a></li>
<?php endif; ?>